//
//  HMAFHTTPClient.h
//  localLife
//
//  Created by Limonwei on 15/11/23.
//  Copyright © 2015年 heima. All rights reserved.
//

#import "AFHTTPSessionManager.h"

typedef void (^successLoadData)(id JSON);

typedef void (^failedLoadData)(NSError *error);

@interface HMAFHTTPClient : AFHTTPSessionManager

+(id)shareInstance;

+(void)getHomeWithParams:(NSDictionary *)param
        withSuccessBlock:(successLoadData)success
         withFailedBlock:(failedLoadData)failed;

+(void)getClrcleWithParams:(NSDictionary *)param
          withSuccessBlock:(successLoadData)success
           withFailedBlock:(failedLoadData)failed;


+(void)getGoodsWithParams:(NSDictionary *)param
         withSuccessBlock:(successLoadData)success
          withFailedBlock:(failedLoadData)failed;


//虚拟请求
+(void)getURL:(NSString *)url
   withParams:(NSDictionary *)param
withSuccessBlock:(successLoadData)success
withFailedBlock:(failedLoadData)failed;


+(void)postURL:(NSString *)url
    withParams:(NSDictionary *)param
withSuccessBlock:(successLoadData)success
withFailedBlock:(failedLoadData)failed;


@end
